import type { ListPageParams } from '../read/type';

export interface GetCollectionListParams extends ListPageParams {
  type: number; // 1-课程，2-专栏
}

export interface AddCollectionParams {
  type: string | number; // 1-课程，2-专栏
  courseId?: string | number; // 课程id
  courseDetailId?: string | number; // 课程详情id
  courseDetailTitle: string; // 课程详情标题
  coverPic: string;
}

export interface GetCollectionListResult {
  collectionId: string;
  type: number; // 1-课程，2-专栏
  courseId?: string; // 课程id
  courseDetailId?: string; // 课程详情id
  courseDetailTitle: string; // 课程详情标题
  coverPic: string;
  [key: string]: any;
}

export interface GetCollectionStatusParams {
  type: string; // 1-课程，2-专栏，3-分享
  courseId?: string | number; // 专栏id type=2
  courseDetailId?: string | number; // 课程详情id type=1
}

export interface GetCollectionStatusResult extends GetCollectionStatusParams {
  status: number | string; // 0-未收藏，1-已收藏
  collectionId: string; // 收藏id
}
